<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link rel="stylesheet" type="text/css" href="../../extSDK/resources/css/ext-all.css" />	
	<link rel="stylesheet" type="text/css" href="../../extModules/resources/menuTree/menuTree.css" />
	<title></title>
	<script language="javascript">
		  <!--
		  function printWithAlert() {
			document.getElementById("WebBrowser").ExecWB(6,1);
		  }

		  function printWithoutAlert() {
			document.getElementById("WebBrowser").ExecWB(6,6);
		  }

		  function printSetup() {
			document.getElementById("WebBrowser").ExecWB(8,1);
		  }

		  function printPrieview() {
			document.getElementById("WebBrowser").ExecWB(7,1);
		  }

		  function printImmediately() {
			document.getElementById("WebBrowser").ExecWB(6,6);
			window.close();
		  }
		  -->
	  </script>
</head>
<body>

  <OBJECT  id=WebBrowser  classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 style="display:none">  </OBJECT>
  <style media=print>
  .Noprint{display:none;}
  .PageNext{page-break-after: always;}
  </style>
  <style>
 .print_tab {
	background-color: #FFFFFF;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
    height:20pt;
   }
     .print_tab_a {
	background-color: #FFFFFF;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
	height:30px;
	font:12.5px;
   }
   
   th{
   background-color: #FFFFFF;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
   }
  </style>
  
  <table align="center">
    <tr>
    <td align="center">
    <input type=button value="打印" onclick="printWithAlert()" class="NOPRINT">
    <input type=button value="直接打印" onclick="printImmediately()" class="NOPRINT">
    <input type=button value="打印设置" onclick="printSetup()" class="NOPRINT">
    <input type=button value="预览" onclick="printPrieview()" class="NOPRINT">
    <input type=button value="关闭" onclick="window.close();" class="NOPRINT">
    </td>
    </tr>
  </table>
  <br>
  <div id="printer_content"></div>
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
	
	if(location.href.indexOf("?contentid=") < 0 || location.href.indexOf("&title=") < 0){
		alert("打印参数错误，请联系管理员！");
	}
	else{		
		var para = location.href.substring(location.href.indexOf("?contentid=") + 11,location.href.length);	
		//alert(para);
		var paraContentId = para.substring(0,para.indexOf("&title="));
		var paraTitle = unescape(para.substring(para.indexOf("&title=") + 7,para.length));
		//alert("contentid=" + paraContentId);
		//alert("title=" + paraTitle);
		document.title = paraTitle;
		document.getElementById("printer_content").innerHTML = window.opener.document.getElementById(paraContentId).innerHTML;
	}
//-->
</SCRIPT>